package com.jxsm.cz.biz;

import com.jxsm.cz.model.UserSign;
import com.jxsm.cz.model.UserSignDetail;
import com.jxsm.jfinal.core.JxBiz;

/**
 * @author guodegen
 * @description
 * @date 2020/10/17 8:38
 */
public class BizUserSignDetail extends JxBiz<UserSignDetail> {
    @Override
    public String add(UserSignDetail userSignDetail, Object... objects) {
        userSignDetail.save();
        return this.getErrorCode();
    }

    @Override
    public String edit(UserSignDetail userSignDetail, Object... objects) {
        userSignDetail.update();
        return this.getErrorCode();
    }

    @Override
    public String delete(Object o) {
        UserSignDetail.dao.deleteById(o);
        return this.getErrorCode();
    }
}
